<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/inc/taglib.jsp"%>
<div class="pageContent">
	<form method="post" action="${pageContext.request.contextPath}${requestScope.record ==null ?'/system/systemSetting/insert' :'/system/systemSetting/update' }" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
		<div class="pageFormContent" layoutH="56">
			<!-- 关闭窗口 -->
			<input type="hidden" name="callbackType" value="closeCurrent" />
			<!-- 隐藏表单 -->
			<c:if test="${requestScope.record !=null}">
				<input type="hidden" name="id" value="${requestScope.record.id}" />
			</c:if>
			<p>
				<label>键</label> <input name="ky" class="required ${requestScope.record !=null ? 'readonly' : ''}"  ${requestScope.record !=null ? 'readonly' : ''}  maxlength="50" type="text" value="${requestScope.record.ky}" />
			</p>
			<p>
				<label>值</label> <input name="val" class="required" maxlength="200" type="text" value="${requestScope.record.val}" />
			</p>
			<%-- <p>
				<label>类型</label> <input name="type" class="required" maxlength="50" type="text" value="${requestScope.record.type}" />
			</p> --%>
			<p class="nowrap">
				<label>备注</label>
				<textarea cols="45" rows="5" name="remk" maxlength="200">${requestScope.record.remk }</textarea>
			</p>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">保存</button>
						</div>
					</div></li>
				<li>
					<div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div>
				</li>
			</ul>
		</div>
	</form>
</div>
